﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:ZFCNew_Vectors="clr-namespace:ZFCNew.Vectors"
	mc:Ignorable="d"
	x:Class="ZFCNew.Controls.NotificationPopup"
	d:DesignWidth="997" d:DesignHeight="90">

	<Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5" Background="#BB000000" Height="90" Margin="15,0" Clip="M-0.5,10.500129 C-4.5,-19 27.362915,-0.5 60.5,-0.5 L906.5,0.5 C939.63708,0.5 966.5,-22.637028 966.5,10.500129 L966.5,13.5 C966.5,46.637146 941,62 907.5,64.50032 C907,96.5 823,101 820.33331,64.50032 L60.5,63.50032 C27.362915,63.50032 20,51.5 9.5,39.500191 z">
		<Grid.RenderTransform>
			<CompositeTransform TranslateY="-63"/>
		</Grid.RenderTransform>
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="VisualStateGroup">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="0:0:0.5" To="Open"/>
					<VisualTransition GeneratedDuration="0:0:0.3" To="Close"/>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="Open">
					<Storyboard>
						<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
						<DoubleAnimation Duration="0" To="-90" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="ExpandBtn" d:IsOptimized="True"/>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="Close">
					<Storyboard>
						<DoubleAnimation Duration="0" To="-63" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Path x:Name="MouseHoverPath" Data="M0.5,60.5 C0.5,27.362915 27.362915,0.5 60.5,0.5 L906.5,0.5 C939.63708,0.5 966.5,27.362915 966.5,60.5 C963.19501,94.287567 954.39996,119.45837 937.34509,131.66528 C937.34509,164.80214 60.511776,141.49205 60.511776,141.49205 C27.374693,141.49205 0.5,122.63708 0.5,89.5 z" Fill="#00F4F4F5" Margin="0,-28,0,25.71" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Visibility="Collapsed"/>
		<Button x:Name="ExpandBtn" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="46" Margin="0,0,78,0" Style="{StaticResource NextPrevButtonStyle}" Height="25" RenderTransformOrigin="0.351,0.507" Opacity="0.665" Background="#FFFFC700">
			<Button.RenderTransform>
				<CompositeTransform Rotation="90" TranslateX="6.679" TranslateY="-7.029"/>
			</Button.RenderTransform>
		</Button>
		<Grid x:Name="ContentGrid" Margin="0,0,0,30" Background="#00000000">
			<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="230,0,0,0" d:LayoutOverrides="Width">
				<TextBlock TextWrapping="Wrap" Text="{Binding Message, FallbackValue=Hmmm ... Nice try but you have not scored a goal yet !}" FontSize="16" Foreground="White" d:LayoutOverrides="Width"/>
				<HyperlinkButton Content="{Binding InternalLink.Name}" FontSize="16" Margin="9,0,0,0" Click="InternalLinkClick" Style="{StaticResource LinkWithoutBorderStyle}" Foreground="#FFFFC700"/>
			</StackPanel>
		</Grid>
		<Path Data="M0.5,60.5 C0.5,27.362915 27.362915,0.5 60.5,0.5 L906.5,0.5 C939.63708,0.5 966.5,27.362915 966.5,60.5 L966.5,89.5 C966.5,122.63708 966.26971,148.39064 906.77106,156.5034 C902.01617,185.29004 825.18652,188.50943 820.33331,155.58643 L55.155609,155.07922 C16.031412,153.56023 -4.6462197,124.35678 0.5,89.5 z" Margin="-0.108,-107.681,-0.667,-0.203" Stretch="Fill" Stroke="#FF888888" UseLayoutRounding="False" StrokeThickness="2"/>
		<ZFCNew_Vectors:BallControl HorizontalAlignment="Left" Margin="33,3,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
			<ZFCNew_Vectors:BallControl.RenderTransform>
				<CompositeTransform ScaleX="0.5" ScaleY="0.5"/>
			</ZFCNew_Vectors:BallControl.RenderTransform>
		</ZFCNew_Vectors:BallControl>
		<ZFCNew_Vectors:BallControl HorizontalAlignment="Left" Margin="93,3,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
			<ZFCNew_Vectors:BallControl.RenderTransform>
				<CompositeTransform ScaleX="0.5" ScaleY="0.5"/>
			</ZFCNew_Vectors:BallControl.RenderTransform>
		</ZFCNew_Vectors:BallControl>
		<ZFCNew_Vectors:BallControl HorizontalAlignment="Left" Margin="155,3,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
			<ZFCNew_Vectors:BallControl.RenderTransform>
				<CompositeTransform ScaleX="0.5" ScaleY="0.5"/>
			</ZFCNew_Vectors:BallControl.RenderTransform>
		</ZFCNew_Vectors:BallControl>
	</Grid>
</UserControl>